import 'package:flutter/material.dart';
import 'package:flutter_palette_generator_app/model/member.dart';
import 'package:flutter_palette_generator_app/resources/colors.dart';
import 'package:flutter_palette_generator_app/resources/sizes.dart';
import 'package:flutter_palette_generator_app/resources/test_styles.dart';
import 'package:flutter_palette_generator_app/widgets/member_widget.dart';

class TeamMembersPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: Icon(Icons.keyboard_backspace,color:blueColor),
        title:Text('明星列表',style: appBarTitleStyle,),
        centerTitle: false,
        elevation: 0.1,
        backgroundColor: Colors.white,
      ),
      body: Padding(
        padding: const EdgeInsets.symmetric(horizontal: size_40),
        child: ListView.separated(itemBuilder: (context,index){
          return MemberWidget(
            member: listMemebers[index],
            compactMode: false,
          );
        }, separatorBuilder: (context,index){
          return SizedBox(height: size_20,);
        }, itemCount: listMemebers.length),
      ),
    );

  }
}

